<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('No')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-no" data-rule="required" class="form-control" name="row[no]" type="text" value="{:create_jubaono()}" readonly="true">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="personal"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group" data-favisible="type=company">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company company')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company"  class="form-control" name="row[company]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" data-favisible="type=company">{:__('Name company')}:</label>
        <label class="control-label col-xs-12 col-sm-2" data-favisible="type=personal">{:__('Name personal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name"  class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" data-favisible="type=company">{:__('Phone company')}:</label>
        <label class="control-label col-xs-12 col-sm-2" data-favisible="type=personal">{:__('Phone personal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone"  class="form-control" name="row[phone]" type="text" value="">
        </div>
    </div>
    <div class="form-group" data-favisible="type=personal">
        <label class="control-label col-xs-12 col-sm-2">{:__('Id_card personal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id_card"  class="form-control" name="row[id_card]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"  data-favisible="type=company">{:__('Address company')}:</label>
        <label class="control-label col-xs-12 col-sm-2" data-favisible="type=personal">{:__('Address personal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address"  class="form-control" name="row[address]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('R_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-r_type" data-rule="required" class="form-control selectpicker" name="row[r_type]">
                {foreach name="rTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="personal"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" data-favisible="r_type=personal">{:__('R_name personal')}:</label>
        <label class="control-label col-xs-12 col-sm-2" data-favisible="r_type=company">{:__('R_name company')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-r_name" data-rule="required" class="form-control" name="row[r_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group" data-favisible="r_type=personal">
        <label class="control-label col-xs-12 col-sm-2">{:__('R_sex')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-r_sex" data-rule="required" class="form-control selectpicker" name="row[r_sex]">
                {foreach name="rSexList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group"  data-favisible="r_type=personal">
        <label class="control-label col-xs-12 col-sm-2">{:__('R_id_info personal')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-r_id_info" data-rule="required" class="form-control selectpicker" name="row[r_id_info]">
                {foreach name="rIdInfoList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group"  data-favisible="r_type=personal">
        <label class="control-label col-xs-12 col-sm-2">{:__('R_job personal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-r_job" data-rule="required" class="form-control" name="row[r_job]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" data-favisible="r_type=personal">{:__('R_phone personal')}:</label>
        <label class="control-label col-xs-12 col-sm-2" data-favisible="r_type=company">{:__('R_phone company')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-r_phone" class="form-control" name="row[r_phone]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" data-favisible="r_type=personal">{:__('R_address personal')}:</label>
        <label class="control-label col-xs-12 col-sm-2" data-favisible="r_type=company">{:__('R_address company')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-r_address" data-rule="required" class="form-control" name="row[r_address]" type="text" value="">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('R_birthplace')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-r_birthplace" class="form-control" name="row[r_birthplace]" type="text" value="">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('F_address add')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-f_address" data-rule="required" class="form-control" name="row[f_address]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('F_starttime add')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-f_starttime" data-rule="required" min="0" class="form-control datetimepicker" data-date-format="YYYY" data-use-current="true" name="row[f_starttime]" type="text" value="{:date('Y')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('F_endtime add')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-f_endtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY" data-use-current="true" name="row[f_endtime]" type="text" value="{:date('Y')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('F_gang add')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-f_gang" data-rule="required" class="form-control selectpicker" name="row[f_gang]">
                {foreach name="fGangList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('F_charge add')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-f_charge" data-rule="required" class="form-control selectpicker" multiple="" name="row[f_charge][]">
                {foreach name="fChargeList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('F_industry add')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-f_industry" data-rule="required" class="form-control selectpicker" multiple="" name="row[f_industry][]">
                {foreach name="fIndustryList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('F_content add')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-f_content" data-rule="required" class="form-control editor" rows="5" name="row[f_content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('S_exist')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-s_exist" data-rule="required" class="form-control selectpicker" name="row[s_exist]">
                {foreach name="sExistList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group"  data-favisible="s_exist=1">
        <label class="control-label col-xs-12 col-sm-2">{:__('S_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-s_name" class="form-control" name="row[s_name]" type="text">
        </div>
    </div>
    <div class="form-group"  data-favisible="s_exist=1">
        <label class="control-label col-xs-12 col-sm-2">{:__('S_id_info')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-s_id_info" class="form-control selectpicker" name="row[s_id_info]">
                {foreach name="sIdInfoList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group"  data-favisible="s_exist=1">
        <label class="control-label col-xs-12 col-sm-2">{:__('S_job add')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-s_job" class="form-control" name="row[s_job]" type="text">
        </div>
    </div>
    <div class="form-group"  data-favisible="s_exist=1">
        <label class="control-label col-xs-12 col-sm-2">{:__('S_content add')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-s_content" class="form-control editor" rows="5" name="row[s_content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[images]" type="textarea">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Video_images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-video_images" class="form-control" size="50" name="row[video_images]" type="textarea">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-video_images" class="btn btn-danger faupload" data-input-id="c-video_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-video_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-video_images" class="btn btn-primary fachoose" data-input-id="c-video_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-video_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-video_images"></ul>
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remarks" data-rule="required" class="form-control" name="row[remarks]" type="text">
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
